Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Runtime Invocation Functions /


JMOpenSession

Instantiates a Java runtime session and returns a session pointer.

OSStatus JMOpenSession (
                     JMSessionRef* session, 
                     JMRuntimeOptions runtimeOptions, 
                     JMVerifierOptions verifyMode, 
                     const JMSessionCallbacks* callbacks, 
                     JMTextEncoding desiredEncoding,
                     JMClientData data);
session
A pointer to a Java runtime session. On return, this parameter is the allocated session.
runtimeOptions
A pointer to a runtime options structure. See "Runtime Session Options" for more information.
verifyMode
A flag indicating whether to use the code verifier. See "Session Security Indicators" for a list of possible values.
callbacks
A pointer to a session callbacks structure. See "Session Callbacks Structure" for more information.
desiredEncoding
The text encoding to use for any text sent to the designated standard output or standard error.
data
Any optional client-specific data.
function result
A result code; see "JManager Result Codes".
DISCUSSION
A valid session pointer has a value other than null. If not enough system memory exists to instantiate a session, JMOpenSession returns memFullErr.

SEE ALSO
"Beginning a Java Runtime Session".

The JMCloseSession function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997